package com.abc.cloud.service;

import com.abc.cloud.dto.user.UserDto;
import com.abc.cloud.entity.UserEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.abc.cloud.common.utils.PageUtil;
import com.abc.cloud.entity.ChatUserEntity;

import java.util.List;
import java.util.Map;

/**
 * 聊天成员表
 *
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-11-29 13:17:40
 */
public interface ChatUserService extends IService<ChatUserEntity> {

    PageUtil queryPage(Map<String, Object> params);

    List<UserDto> listByChatId(Long id);

    void increaseUnreadCount(Long chatId, Long userId);

    void changeReadCount(Long chatId, Long userId, int i);

    void saveChatUser(Long id, Long userId);
}

